package io.afu.httprequest;


import io.afu.common.exception.BaseException;

public class Runner {



    public static void main(String[] args) throws BaseException {
        String url = "http://rffan.info";
        url = "http://oss.yunjk.net.cn/aisinotest/aisinoOffic/valid/7479963108-91106033.pdf?AWSAccessKeyId=AK0G6JTWBQAUHED7CA4X&Expires=2145888000&Signature=6pRcSKqtlKoqgCD0bSdNQha5swM%3D";
//        url = "https://www.amd.com/en/products-rest?_format=json";
//        String result = HttpRequest.getInstance().addHeader("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36").setUrl(url).get();
//        System.out.println(result);
        Downloader.getInstance().setUrl(url).setSave("D:/tmp/xxx.pdf").d();




    }
}
